<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 <%//@include file="../../include/authorization.jsp"
//	errorPage="../../errorPage.jsp"%>
<%@page 
		contentType ="text/html; charset=windows-874" 
		import="com.epro.standard.usermenu.UserAccountVO,
						com.epro.standard.frontend.util.FileInfoUtil,
						com.epro.standard.frontend.util.EproServletUtil,
						com.epro.standard.frontend.util.ShowData,java.util.Vector"
%>
<HTML xmlns:epro>
<HEAD>
<META name="GENERATOR" content="IBM WebSphere Studio">
</HEAD>
	<%@taglib uri="/WEB-INF/HeadTag.tld"  prefix="header"%>
	<%@taglib uri="/WEB-INF/LovTag.tld"   prefix="lov"%>
	<%@taglib uri="/WEB-INF/CalendarTag.tld" prefix="calendar"%>
<header:Head 
	author		=""
	title     	="Calendar"
    import   	="calendar"	   	
	styleFile 	="../theme/defaultTheme.css,../theme/calendarTheme.css"
	jsFile		="../script/imgProp.js,../script/Alert.js,../script/checkValidData.js,../script/lov.js
					,../script/div.js,../script/dateCalendar.js"

	></header:Head>
	
<!----------------------- 
<STYLE>
        @media all
        {
            epro\:calendar {behavior:url(../htc/BCalendarComponent.htc);}
        }
</STYLE>
<META name="GENERATOR" content="IBM WebSphere Studio">
<SCRIPT LANGUAGE="JavaScript" src="../script/dateCalendar.js" type="text/javascript"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" src="../script/checkValidData.js" type="text/javascript"></SCRIPT>

---------------------->
<SCRIPT LANGUAGE="JavaScript">
	function calltest()
	{
		returnValue=  document.all.showDateThai.value;
		//alert(returnValue);
		if (returnValue!='')
			{window.close();     }
	}

</SCRIPT>

<BODY style="margin: 0px;" >
	<TABLE align="center" bgcolor="lightgrey"  border="0px" style="margin: 0;border-collapse: 0;border-left: 0;" >
		<TR>
		
			<TD class="dataFont">			

<!----------------------- begining to draw calendar tag code ----------------------->
				<DIV id='calendarLayer' style='visibility:visible; margin-left: 0px;margin-top: 0px;'  align="left" >
				<epro:calendar 
					id='calendarcalendarLayer'  
					minYear='2000' 
					maxYear='2050' 
					setLanguage='English' 
					style='width :250; height : 200; border : 1px solid black;' 
					onclick="returnDate(calendarLayer,calendarcalendarLayer);setTimeout('calltest()',100); "></epro:calendar>
				</DIV>
			</TD>
		</TR>
 <TR valign="bottom" >
 <TD height="50px">
 	<IMG align="bottom" id="aaa" src='../images/icon/calendar/nCalendar.jpg' alt='calendar' 
 		 onclick='setDateToCalendar(showDateThai,calendarcalendarLayer);showLayer(showDateThai,calendarLayer)' 
 		 style='cursor: hand;' onmouseover="this.src='../images/icon/calendar/oCalendar.jpg'" 
 		 onmouseout="this.src='../images/icon/calendar/nCalendar.jpg'">
 </TD>
 </TR>
</TABLE> 
		<INPUT name="showDateThai" type="text" id="showDateThai" style="position:absolute ;top: -50;" >
<SCRIPT  LANGUAGE="JavaScript">
		document.all.aaa.click();
</SCRIPT>
		
</BODY>
</HTML>
